package com.rivulet.doj_backend.depend;

public final class CommonStatus {
    public static Status ok = DefaultStatus.toStatus(0, "success");
    public static Status success;
    public static Status error;
    public static Status objectNotExist;
    public static Status objectAlreadyExist;
    public static Status illegalArgument;
    public static Status httpMethodNotSupport;
    public static Status maxUploadSizeExceeded;
    public static Status maxUploadSizeExceeded2;

    private CommonStatus() {
    }

    static {
        success = ok;
        error = DefaultStatus.toStatus(10000, "error");
        objectNotExist = DefaultStatus.toStatus(10001, "error.object_not_exist");
        objectAlreadyExist = DefaultStatus.toStatus(10002, "error.object_already_exist");
        illegalArgument = DefaultStatus.toStatus(10003, "error.illegal_argument");
        httpMethodNotSupport = DefaultStatus.toStatus(10405, "error.http.method.not_support");
        maxUploadSizeExceeded = DefaultStatus.toStatus(10501, "error.upload.max_size_exceeded");
        maxUploadSizeExceeded2 = DefaultStatus.toStatus(10501, "error.upload.max_size_exceeded2");
    }
}